/*
 * @Author: yanjikun
 * @Date: 2022-05-13 14:22:20
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-06-02 14:12:06
 * @Description: file content
 */

import { YAxios } from '@/utils/http/request'
import { api } from '..'

export function getUserRights() {
  return YAxios<API.MenuResult>({
    url: api.userRights,
    method: 'post',
  })
}
/**按域名获取配置详情*/
export function supervisionConfigByDomain(params: API.SupervisionConfigInfoParams) {
  return YAxios<API.SupervisionConfigInfoResult>({
    url: `${api.supervisionConfig}/domain`,
    method: 'get',
    params,
  })
}

/**上传文件 */
export function uploadFile(params: API.UploadFileParams) {
  return YAxios<API.UploadFileResult>({
    url: `${api.uploadFile}`,
    method: 'post',
    data: params,
  })
}
